PKG_NAME = PyYAML
PKG_VERS = 5.3
PKG_EXT = tar.gz
PKG_DIST_NAME = $(PKG_NAME)-$(PKG_VERS).$(PKG_EXT)
PKG_DIST_SITE = https://files.pythonhosted.org/packages/source/P/$(PKG_NAME)
PKG_DIR = $(PKG_NAME)-$(PKG_VERS)

DEPENDS = cross/libyaml

HOMEPAGE = http://pyyaml.org/
COMMENT  = PyYAML is a YAML parser and emitter for the Python programming language
LICENSE  = MIT

POST_EXTRACT_TARGET = pyyaml_post_extrat

include ../../mk/spksrc.python-wheel.mk

.PHONY: pyyaml_post_extrat

# Cannot provide path to setup.py via command-line for bdist_wheel
# So have to supply a config-file with the correct lib path
pyyaml_post_extrat:
	cp setup.cfg $(WORK_DIR)/$(PKG_DIR)/
	sed -e 's#@STAGING_INSTALL_PREFIX@#$(STAGING_INSTALL_PREFIX)#' -i $(WORK_DIR)/$(PKG_DIR)/setup.cfg
